// components/Card2/card.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    entry: {
      type: Object
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    navToDetail(e) {
      console.log(e)
      var value = e.currentTarget.dataset
      wx.navigateTo({
        url: '/pages/detail/detail',
        success: (result) => {
          result.eventChannel.emit("entry", value.detail)
        },
        fail: (res) => { },
        complete: (res) => { },
      })
    },
  }
})
